package com.zjw.video.custom.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zjw.video.common.entity.req.TagReqVO;
import com.zjw.video.common.entity.resp.BaseResp;
import com.zjw.video.common.entity.resp.TagRespVO;
import com.zjw.video.custom.service.TagService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "标签controller")
@RestController
@RequestMapping("/tag")
public class TagController {

    @Resource
    private TagService tagService;

    @Operation(summary = "tag列表")
    @PostMapping("/list")
    public BaseResp<Page<TagRespVO>> tagList(@RequestBody TagReqVO tagReqVO){
        return BaseResp.success(tagService.tagList(tagReqVO));
    }

}
